const router = require('koa-router')(),
      crawlerController = require('../controllers/Crawler'),
      loginCheck = require('../middlewares/loginCheck');

router.prefix('/crawler');//添加默认的路由

//爬取首页轮播图
router.get('/crawl_slider_data', loginCheck, crawlerController.crawlSliderData);
//爬取首页机构信息
router.get('/crawl_agency_info', loginCheck, crawlerController.crawlAgencyInfo);
//爬取'推荐课程'
router.get('/crawl_recom_course', loginCheck, crawlerController.crawlRecomCourse);
//‘收集课程’
router.get('/crawl_collection', loginCheck, crawlerController.crawlCollention);
//明星老师
router.get('/crawl_teacher', loginCheck, crawlerController.crawlTeacher);
//优秀学员
router.get('/crawl_student', loginCheck, crawlerController.crawlStudent);
//课程tab
router.get('/crawl_course_tab', loginCheck, crawlerController.crawlCourseTab);
//全部课程
router.get('/crawl_course_data', loginCheck, crawlerController.crawlCourseData);
//关于我们
router.get('/crawl_aboutus', loginCheck, crawlerController.crawlAboutus);


// router.post('/crawl_action', loginCheck, crawlerController.crawlAction);

module.exports = router
